package com.hanrentong.dp.abstractfactory;

/**
 * 实际工厂 生产实际产品 抽象产品来接收
 */
public class ModernFactory extends AbastractFactory {

    @Override
    Food createFood() {
        return new Bread();
    }

    @Override
    Vehicle createVehicle() {
        return new Car();
    }

    @Override
    Weapon createWeapon() {
        return new AK47();
    }
}
